package com.loveyukari.dao;

import com.loveyukari.model.Permission;

import java.util.List;

public interface PermissionDao {

    List<Permission> selectAll();
    List<Permission> selectByAuthId(int authId);

    Permission selectById(int id);

    int countByAuthIdAndPermissionType(int authId, int permissionId) ;

    void insertAuthPermission(int authId,int permissionId);

    void deleteAuthPermission(int authId,int permissionId);

    List<Integer> selectAuthIdByPermission(int permissionId);

}
